﻿<phone:PhoneApplicationPage 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
    d:DesignWidth="480"
    d:DesignHeight="768"
    x:Class="Mooville.QUno.Phone.SettingsPage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"
    Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.check.rest.png" Text="done" Click="Ok_Click"/>
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.cancel.rest.png" Text="cancel" Click="Cancel_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel x:Name="TitlePanel" Margin="12,17,0,0" Grid.Row="0" Grid.Column="0">
            <TextBlock x:Name="ApplicationTitle" Text="SETTINGS" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>
        <controls:Panorama Title="quno" Margin="12,0,12,0" Grid.Row="1" Grid.Column="0">
            <controls:PanoramaItem Header="options">
            	<StackPanel>
            		<TextBlock Text="Player name"/>
                    <TextBox x:Name="textDefaultHumanPlayerName" Text="{Binding Path=DefaultHumanPlayerName}"/>
            		<TextBlock Text="Number of computer players"/>
            		<Slider 
                        x:Name="sliderDefaultComputerPlayers" 
                        Value="{Binding Path=DefaultComputerPlayers}" 
                        Minimum="{Binding Path=MinimumComputerPlayers}"
                        Maximum="{Binding Path=MaximumComputerPlayers}"/>
            	</StackPanel>
            </controls:PanoramaItem>
            <controls:PanoramaItem Header="about">
                <StackPanel>
                	<TextBlock Text="QUno" FontWeight="Bold"/>
                	<TextBlock x:Name="textVersion" Text="Version {0}" Margin="0,0,0,16"/>
                	<HyperlinkButton Content="quno.codeplex.com" NavigateUri="http://quno.codeplex.com/" HorizontalAlignment="Left" Margin="-12,0,0,16"/>
                	<TextBlock Text="This product is licensed under the New BSD License." Margin="0,0,0,16" TextWrapping="Wrap"/>
                	<TextBlock Text="Copyright © 2008-2013 Roger Deetz. All rights reserved." TextWrapping="Wrap"/>
                </StackPanel>
            </controls:PanoramaItem>
        </controls:Panorama>
    </Grid>
</phone:PhoneApplicationPage>
